﻿using System.Collections.Generic;
using System.Windows.Controls;

namespace Red.Launcher
{
    /// <summary>
    /// Interaction logic for TargetsView.xaml
    /// </summary>
    public partial class TargetsView : UserControl
    {
        #region C-Tor

        public TargetsView()
        {
            InitializeComponent();

            PopulateWithSampleData();
        }

        #endregion C-Tor

        // Some dummy data for the packages table
        void PopulateWithSampleData()
        {
            List<Target> targets = new List<Target>();
            targets.Add(new Target() { Type = 0, Address = "127.0.0.1" });
            targets.Add(new Target() { Type = 1, Address = "192.168.101.103" });
            targets.Add(new Target() { Type = 1, Address = "192.168.101.96" });
            targets.Add(new Target() { Type = 2, Address = "192.168.103.45" });

            TargetsList.ItemsSource = targets;
        }
    }
    

    #region Sample Data

    public class Target
    {
        public int Type { get; set; }
        public string Address { get; set; }
    }

    #endregion Sample Data
}
